package com.ruoyi.shebei.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备对象 shebei
 * 
 * @author admin
 * @date 2024-07-26
 */
public class Shebei extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备id */
    private Long shebeiId;

    /** 设备名称 */
    @Excel(name = "设备名称",sort = 1)
    private String sbName;

    /** 设备厂家 */
    @Excel(name = "设备厂家",sort = 2)
    private String sbVender;

    /** 厂家电话 */
    @Excel(name = "厂家电话")
    private String venderPhone;

    /** 采购时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date caigouTime;

    /** 出厂日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出厂日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date chuchangTime;

    /** 设备金额 */
    @Excel(name = "设备金额",sort = 3)
    private BigDecimal sbAmount;

    /** 设备负责人 */
    @Excel(name = "设备负责人")
    private String principal;

    /** 设备类型  例如:数控机床,冲压机床,机器臂,激光焊 */
    @Excel(name = "设备类型",sort = 4)
    private String sbType;

    /** 设备状态  1 正常 2 停用 3报废 */
    @Excel(name = "设备状态",readConverterExp = "1=正常,2=停用,3=报废",sort = 5)
    private String sbStatus;

    /** 规格型号 */
//    @Excel(name = "规格型号")
    private String geXh;

    /** 所属车间 */
//    @Excel(name = "所属车间")
    private String owningWorkshop;

    public void setShebeiId(Long shebeiId) 
    {
        this.shebeiId = shebeiId;
    }

    public Long getShebeiId() 
    {
        return shebeiId;
    }
    public void setSbName(String sbName) 
    {
        this.sbName = sbName;
    }

    public String getSbName() 
    {
        return sbName;
    }
    public void setSbVender(String sbVender) 
    {
        this.sbVender = sbVender;
    }

    public String getSbVender() 
    {
        return sbVender;
    }
    public void setVenderPhone(String venderPhone) 
    {
        this.venderPhone = venderPhone;
    }

    public String getVenderPhone() 
    {
        return venderPhone;
    }
    public void setCaigouTime(Date caigouTime) 
    {
        this.caigouTime = caigouTime;
    }

    public Date getCaigouTime() 
    {
        return caigouTime;
    }
    public void setChuchangTime(Date chuchangTime) 
    {
        this.chuchangTime = chuchangTime;
    }

    public Date getChuchangTime() 
    {
        return chuchangTime;
    }
    public void setSbAmount(BigDecimal sbAmount) 
    {
        this.sbAmount = sbAmount;
    }

    public BigDecimal getSbAmount() 
    {
        return sbAmount;
    }
    public void setPrincipal(String principal) 
    {
        this.principal = principal;
    }

    public String getPrincipal() 
    {
        return principal;
    }
    public void setSbType(String sbType) 
    {
        this.sbType = sbType;
    }

    public String getSbType() 
    {
        return sbType;
    }
    public void setSbStatus(String sbStatus) 
    {
        this.sbStatus = sbStatus;
    }

    public String getSbStatus() 
    {
        return sbStatus;
    }

    public void setGeXh(String geXh)
    {
        this.geXh = geXh;
    }

    public String getGeXh()
    {
        return geXh;
    }
    public void setOwningWorkshop(String owningWorkshop)
    {
        this.owningWorkshop = owningWorkshop;
    }

    public String getOwningWorkshop()
    {
        return owningWorkshop;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("shebeiId", getShebeiId())
            .append("sbName", getSbName())
            .append("sbVender", getSbVender())
            .append("venderPhone", getVenderPhone())
            .append("caigouTime", getCaigouTime())
            .append("chuchangTime", getChuchangTime())
            .append("sbAmount", getSbAmount())
            .append("principal", getPrincipal())
            .append("sbType", getSbType())
            .append("sbStatus", getSbStatus())
            .append("geXh", getGeXh())
            .append("owningWorkshop", getOwningWorkshop())
            .toString();
    }
}
